package com.example.ssmxuankeback.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;

@Data
@Schema(name = "UserPageQueryDTO", description = "用户分页查询参数")
public class UserPageQueryDTO {
    @Schema(description = "当前页码", example = "1")
    @Min(1) private Integer pageNum = 1;

    @Schema(description = "每页条数", example = "10")
    @Min(1) @Max(100) private Integer pageSize = 10;

    @Schema(description = "用户姓名（模糊查询）") private String name;
    @Schema(description = "班级ID") private Long classId;
    @Schema(description = "用户类型（0-学生，1-老师）") private Integer userType;
    @Schema(description = "排序字段（id/createTime）") private String sortBy;
    @Schema(description = "排序方式（asc/desc）") private String sortOrder = "asc";
}